package com.rowline.admin.module.study.dynamicproxy;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * ClassName:AspectDemo
 * Created by 245167
 * on 2018/1/18  18:08
 * description:
 */
//@RunWith(SpringJUnit4ClassRunner.class)
//@ContextConfiguration({ "classpath:*.xml" })
public class AspectDemo {

//    @Test
    public void demo(){
        String xmlPath="aspectContext.xml";
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
        UserService userService = (UserService) applicationContext
                .getBean("userService");
        userService.addUser();

        userService.updateUser();
    }



}
